package com.yuntuzhilian.chapter5;

/**
 * @author MrWang-shuizhishuiheshui
 * @description 子类--拉布拉多
 */
public final class LaBuLaDuo extends Dog {

    private double high;

    public double getHigh() {
        return high;
    }
    public void setHigh(double high) {
        this.high = high;
    }

    public LaBuLaDuo() {
    }
    public LaBuLaDuo(String name,int age, double high) {
        super(name,age);
        this.high = high;
    }

    /**
     * 重写父类方法
     */
    @Override
    public void show() {
        System.out.println("姓名:"+getName()+"年龄:"+getAge());
        System.out.println("身高:"+getHigh());
    }
}
